package com.reptile.lottery.dao;

import com.reptile.lottery.show.SportsLotto;
import com.reptile.lottery.show.TwoColorBall;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * Description:
 * Author:zhouyongqiang
 * Date: 2020/12/22 15:29
 * Copyright (c) 2020,All Rights Reserved.
 */
public interface TwoColorBallDao extends JpaRepository<TwoColorBall,Integer> {
    @Query(value="select t.* from two_color_ball t where t.number = ?1",nativeQuery=true)
    TwoColorBall findByNumber(@Param("number") Integer number);
}
